﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MTQ.Model
{
    [Serializable]
    public class ChartReport
    {
        public string title { get; set; }
        public List<string> xAxis { get; set; }

        public List<string> yAxis { get; set; }

        public List<List<object>> data { get; set; }

        public List<ValueName> listValueName { get; set; }

        public List<string> legend { get; set; }

        public string subtext { get; set; }
    }
    [Serializable]
    public class ValueName
    {
        public int value { get; set; }

        public string name { get; set; }
    }


    [Serializable]
    public class ReportDashboard
    {
        public ChartReport ProjectAll { get; set; }
        public ChartReport Department { get; set; }
        public ChartReport Location { get; set; }

        public ChartReport ProjectType { get; set; }

        public ChartReport QtyOK { get; set; }

        public ChartReport ProjectOpenClose { get; set; }
        public ChartReport ProjectDuration { get; set; }

        

    }

    [Serializable]
    public class ReportDashboardSearch
    {
        public ChartReport Department { get; set; }
        public ChartReport Location { get; set; }

        public ChartReport ProjectType { get; set; }

        public ChartReport QtyNOKFailuresTop { get; set; }

        public ChartReport QtyNOKPartTop { get; set; }

        public ChartReport QtyNOKNumberTOP { get; set; }
        public ChartReport QtyNOKSuppliersTop { get; set; }
        public ChartReport QtyNOKNumberSuppliersTOP { get; set; }
        public ChartReport ProjectWeeks { get; set; }

        public ChartReport ProjectCostRecovery { get; set; }

    }


    [Serializable]
    public class ReportDashboardDetail
    {
        public ChartReport crNOK { get; set; }
        public ChartReport crNOKQty { get; set; }
        public ChartReport crDuring { get; set; }

        public ChartReport crRadar { get; set; }

    }


    public class ReportEchartData
    {
        public string K { get; set; }

        public decimal V1 { get; set; }

        public decimal V2 { get; set; }

        public decimal R { get; set; }

    }

}
